import request from '@/utils/request'

/**
 * 获取微信小程序商品海报
 * @param {*} params
 */
export function wxItemQrCode(params) {
    return request({
      url: '/Public/itemDetailQrcode',
      method: 'POST',
      data: params
    })
  }

/**
 * 获取微信小程序商品海报
 * @param {*} params
 */
export function wxUserApiUserCard(params) {
  return request({
    url: '/UserApi/userCard',
    method: 'POST',
    data: params
  })
}
export function wxUserApiDhsCard(params) {
  return request({
    url: '/DhsCard/get_card',
    method: 'POST',
    data: params
  })
}

/**
 * 获取微信小程序直播列表
 * @param {*} params
 */
export function wxBroadcastList(params) {
  return request({
    url: '/WxBroadcast/broadcastList',
    method: 'POST',
    data: params
  })
}

/**
 * 获取微信小程序会员信息
 * @param {*} params
 */
export function wxKfUserInfo(params) {
  return request({
    url: '/UserApi/kfUserInfo',
    method: 'POST',
    data: params
  })
}

/**
 * 获取小程序订阅消息模版ID
 * @param {*} params
 */
export function GetWxTemplateId(params) {
  return request({
    url: '/UserApi/get_template_id',
    method: 'POST',
    data: params
  })
}

/**
 * 上报小程序用户选用的订阅消息模版ID
 */
export function PostAddWxTemplateId(params) {
  return request({
    url: '/UserApi/add_template_form',
    method: 'POST',
    data: params
  })
}
